package com.gzxw.mogublog.base.holder;

public abstract class AbstractRequestAwareRunnable implements Runnable {
    private Thread thread;

    public AbstractRequestAwareRunnable() {
        this.thread = Thread.currentThread();
    }

    @Override
    public void run() {

        try {
            onRun();
        } finally {
            thread = null;
        }
    }

    // 启动
    protected abstract void onRun();
}
